home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / IIS5_01.CAB / IIS_iierrls.asp < prev    next >
Encoding:
Text File  |  1999-06-03  |  5.9 KB  |  211 lines

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3. <!-- #include file="directives.inc" -->
  4.  
  5. <!--#include file="iierr.str"-->
  6. <!--#include file="iierrls.str"-->
  7. <!--#include file="iiset.inc"-->
  8. <!--#include file="iisetfnt.inc"-->
  9.  
  10. <% if Request.Querystring("text") <> "" then %>
  11. <HTML>
  12. <BODY BGCOLOR="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0>
  13. <%= sFont("","","",True) %>
  14.     <%= Request.Querystring("text") %>
  15. </FONT>
  16. </BODY>
  17. </HTML>
  18. <% else %>
  19.  
  20.     
  21.     <HTML>
  22.     <HEAD>
  23.         <TITLE></TITLE>
  24.     
  25.         <SCRIPT LANGUAGE="JavaScript">
  26.         
  27.         <!--#include file="iijsfuncs.inc"-->
  28.         
  29.         headframe = parent.head;
  30.         function chgStatus(indexnum){
  31.             headframe.listFunc.sel=indexnum
  32.             self.location.href="iierrls.asp"            
  33.         }
  34.             
  35.         function SetUpdated(){
  36.             reload=false;
  37.             top.title.Global.updated="true";
  38.             i=headframe.listFunc.sel;
  39.     
  40.             if (document.listform.editMe.selectedIndex==0){
  41.                 reload=true;
  42.                 headframe.cachedList[i].outType="";
  43.                 headframe.cachedList[i].msgPath=headframe.cachedList[i].msgDefault;
  44.             }
  45.             else{
  46.                 if (headframe.cachedList[i].outType==""){    
  47.                     reload=true;
  48.                 }
  49.                 else{
  50.                     document.listform.msgPath.value="";
  51.     
  52.                 }            
  53.                 headframe.cachedList[i].msgPath="";
  54.     
  55.                 
  56.                 if(document.listform.editMe.selectedIndex==1){
  57.                     headframe.cachedList[i].outType="FILE";                
  58.                 }
  59.                 else{
  60.                     headframe.cachedList[i].outType="URL";            
  61.                 }
  62.             }
  63.             headframe.cachedList[i].updated=true;
  64.             if (reload){
  65.                 chgStatus(i);
  66.             }
  67.         }
  68.         
  69.         function SetPath(){
  70.             top.title.Global.updated="true";
  71.             i=headframe.listFunc.sel;
  72.             headframe.cachedList[i].msgPath=document.listform.msgPath.value;
  73.             
  74.             if (headframe.cachedList[i].outType=="FILE"){    
  75.                 chkPath(document.listform.msgPath);
  76.             }        
  77.         }
  78.         
  79.         function chkPath(pathCntrl){
  80.             if (pathCntrl.value != ""){
  81.                 top.connect.location.href = "iichkpath.asp?path=" + escape(pathCntrl.value) + "&ptype=1";            
  82.             }
  83.         }
  84.         
  85.         function pathBrowser(){
  86.             JSBrowser=new BrowserObj(document.listform.msgPath,POP,TFILE,<%= Session("FONTSIZE") %>);
  87.         }    
  88.         
  89.         </SCRIPT>
  90.         
  91.  
  92.         <SCRIPT SRC="JSBrowser/jsbrwsrc.asp">
  93.         </SCRIPT>    
  94.         
  95.         <SCRIPT LANGUAGE="JavaScript">
  96.             JSBrowser = new BrowserObj(null,false,TFILE,<%= Session("FONTSIZE") %>);        
  97.         </SCRIPT>
  98.         
  99.     </HEAD>
  100.     
  101.     <BODY BGCOLOR="#FFFFFF" LEFTMARGIN=0 TOPMARGIN=0>
  102.     
  103.     <FORM NAME="listform">
  104.     
  105.     
  106.     
  107.     <SCRIPT LANGUAGE="JavaScript">
  108.         editOK=false;
  109.         sel=eval(headframe.listFunc.sel);
  110.     
  111.         writestr = "<TABLE WIDTH = <%= L_ERRTABLEWIDTH_NUM%> BORDER=0 CELLPADDING=2 CELLSPACING=0>";
  112.         for (var i=0;i < headframe.cachedList.length; i++) {
  113.     
  114.             iconstr = "<IMG border=0 SRC='"
  115.             if (headframe.cachedList[i].outType=="FILE"){
  116.                 iconstr += "images/file.gif' ";
  117.             }
  118.             else{
  119.                 if (headframe.cachedList[i].outType=="URL"){
  120.                     iconstr += "images/url.gif' ";        
  121.                 }
  122.                 else{
  123.                     iconstr += "images/space.gif' ";                        
  124.                 }
  125.             }    
  126.             iconstr += "WIDTH=13 HSPACE = 3 ALIGN=top>";
  127.             
  128.             if (headframe.listFunc.sel !=i) {        
  129.                 writestr += "<TR>"
  130.                 writestr += headframe.listFunc.writeCol(1,<%= L_ERRORCOLWIDTH_NUM %>,"<A HREF='javascript:chgStatus("+i+");'>" + iconstr + headframe.cachedList[i].errcode + "</A>","");        
  131.     
  132.                 if (headframe.cachedList[i].outType=="FILE"){
  133.                     etype = "<%= L_FILE_TEXT %>";
  134.                 }
  135.                 else{
  136.                     if (headframe.cachedList[i].outType=="URL"){
  137.                         etype = "<%= L_URL_TEXT %>";
  138.                     }
  139.                     else{
  140.                         etype = "<%= L_DEFAULT_TEXT %>";
  141.                     }
  142.                 }
  143.                 
  144.                 writestr += headframe.listFunc.writeCol(1,<%= L_OUTPUTTYPECOLWIDTH_NUM %>,etype,"");
  145.                 writestr += headframe.listFunc.writeCol(1,<%= L_TEXTORFILECOLWIDTH_NUM %>,headframe.cachedList[i].msgPath,"");        
  146.                 writestr += "</TR>";
  147.             }
  148.             else{
  149.     
  150.                 writestr += "<TR BGCOLOR=#DDDDDD>"
  151.                 writestr += headframe.listFunc.writeCol(1,<%=L_ERRORCOLWIDTH_NUM %>,"<A HREF='javascript:chgStatus("+i+");'>" + iconstr + headframe.cachedList[i].errcode + "</A>","");        
  152.                 
  153.                 sel = "<%= writeSelect("editMe", "", "SetUpdated();", false) %>";
  154.                 editOK=true;    
  155.                 if (headframe.cachedList[i].outType=="FILE"){
  156.                     options = "<OPTION><%= L_DEFAULT_TEXT %>"    
  157.                     options += "<OPTION SELECTED><%= L_FILE_TEXT %>"
  158.                     if (headframe.cachedList[i].types !=1){
  159.                         options += "<OPTION><%= L_URL_TEXT %>"
  160.                     }
  161.                 }
  162.                 else{
  163.                     if (headframe.cachedList[i].outType=="URL"){
  164.                         options = "<OPTION><%= L_DEFAULT_TEXT %>"
  165.                         options += "<OPTION><%= L_FILE_TEXT %>"
  166.                         options += "<OPTION SELECTED><%= L_URL_TEXT %>"
  167.                     }
  168.                     else{
  169.                         options = "<OPTION SELECTED><%= L_DEFAULT_TEXT %>"
  170.                         options += "<OPTION><%= L_FILE_TEXT %>"
  171.                         if (headframe.cachedList[i].types !=1){                
  172.                             options += "<OPTION><%= L_URL_TEXT %>"
  173.                         }
  174.                     }
  175.                 }            
  176.                 writestr += headframe.listFunc.writeCol(1,<%=L_OUTPUTTYPECOLWIDTH_NUM %>,sel + options + "</SELECT>","");
  177.                 
  178.                 if (headframe.cachedList[i].outType != ""){        
  179.                     if (headframe.cachedList[i].outType=="FILE"){
  180.                         writestr += headframe.listFunc.writeCol(1,<%= L_TEXTORFILECOLWIDTH_NUM %>,"<INPUT NAME='msgPath' VALUE='"+headframe.cachedList[i].msgPath +"' SIZE=35 <%= Session("DEFINPUTSTYLE") %> onBlur='SetPath();'>  <% if Session("canBrowse") then %><A HREF='javascript:pathBrowser();'><IMG SRC='images/browse.gif' BORDER=0></A><% end if %>","");
  181.                     }
  182.                     else{            
  183.                         writestr += headframe.listFunc.writeCol(1,<%= L_TEXTORFILECOLWIDTH_NUM %>,"<INPUT NAME='msgPath' VALUE='"+headframe.cachedList[i].msgPath +"' SIZE=35 <%= Session("DEFINPUTSTYLE") %> onBlur='SetPath();'>","");
  184.                     }
  185.                 }
  186.                 else{
  187.                     writestr += headframe.listFunc.writeCol(1,<%= L_TEXTORFILECOLWIDTH_NUM %>,headframe.cachedList[i].msgPath,"");
  188.                 }
  189.     
  190.                 writestr += "</TR>"
  191.             }
  192.         }
  193.         writestr += "</TABLE>";
  194.         document.write(writestr);            
  195.     </SCRIPT>
  196.     
  197.     <P> 
  198.     <P> 
  199.     </FORM>
  200.     
  201.     <SCRIPT LANGUAGE="JavaScript">
  202.  
  203.         if (editOK){
  204.         document.listform.editMe.focus();
  205.         }
  206.  
  207.     </SCRIPT>
  208.     
  209.     </BODY>
  210.     </HTML>
  211. <% end if %>